package com.ruoyi.web.ydz.util.quartz;

import com.ruoyi.common.core.domain.R;
import org.quartz.JobDataMap;
import org.quartz.SchedulerException;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date;

@RestController
@RequestMapping("/ydz/quart")
public class test {
    @Resource
    private QuartServiceImpl quartService;

    @Resource
    private quartzRestore quartzRestore;

    @GetMapping("/get")
    public void ggget() throws SchedulerException {

        quartzRestore.restore();
        quartService.getQuartLis();
    }

}
